﻿using Microsoft.AspNet.SignalR;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XF.Meeting.Entity.dbEntity;

namespace XF.Meeting.Api.Connections
{
    public class MyTestHub:Hub
    {
        public void hello(string a) {
            Clients.All.say(a+"你好呀");
        }
        public void showEntity(UserInfo user) {
            var entity = new UserInfo()
            {
                Account = "heihei",
                AccountName = "name",
                IsAdmin = 3,
                IsDelete = 1,
                IsEnable = true,
                Mail = "sdfadf",
                Phone = "12312312"
            };
        var str=    JsonConvert.SerializeObject(user);
            Clients.All.show(str);
        }
    }
}